package com.huike.web.controller.clues;

import com.huike.clues.domain.dto.ClueRecordDto;
import com.huike.clues.service.ITbClueService;
import com.huike.clues.service.impl.TbClueServiceImpl;
import com.huike.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/clues")
public class ClueRecordController {

    @Autowired
    private ITbClueService tbClueService;


    @PostMapping("/record")
    public AjaxResult record(@RequestBody ClueRecordDto clueRecordDto){
        tbClueService.record(clueRecordDto);
        return AjaxResult.success();
    }
}
